<link rel="stylesheet" type="text/css" href="/static/style/community/style.css">
<script src="http://www.google.com/jsapi"></script>
<script language="javascript" type="text/javascript">
  google.load("jquery", "1.3");
</script>

{% if user.user %}
<link rel="stylesheet" href="/static/js/jquery/jquery.wysiwyg.css" type="text/css" media="screen" />
<script type="text/javascript" src="/static/js/jquery/jquery.wysiwyg.js"></script>
<script language="javascript" type="text/javascript">
$(function()
{
    $('#id_content').wysiwyg();
});
{% if user.admin %}
$('#id_content').wysiwyg({
    controls : {
        separator04 : { visible : true },
        insertOrderedList : { visible : true },
        insertUnorderedList : { visible : true },
        html : { visible : true }
    }
});
{% endif %}

function post_and_reload(post_url)
{
	$.post(post_url, function(data){document.location.reload();});
}
function post_and_replace(post_url, replace_url)
{
    $.post(post_url, function(data){document.location.replace(replace_url);});
}
</script>  
{% endif %}  

<link type="text/css" rel="stylesheet" href="/static/js/syntaxhighlighter/SyntaxHighlighter.css"></link>
<script language="javascript" type="text/javascript" src="/static/js/syntaxhighlighter/shCore.js"></script>
<script language="javascript" type="text/javascript" src="/static/js/syntaxhighlighter/shBrushPython.js"></script>
